<?php if ($sf_request->hasErrors()): ?>
    <?php foreach ($sf_request->getErrorNames() as $name): ?>
        <?php echo __($sf_request->getError($name)); ?><br/>
    <?php endforeach; ?>
<?php endif; ?>